Skip to main content

TRREST_CNSOAP

Trigger REST and Connector SOAP

Sr. NoService NameDescriptionDetails
1.consumeSoapTrigger is rest with post action.xml body is passed as payload input. number conversion soap api is called with soap v=connector with the input as is the body to the request as input. Get the output and convert to json and send as response.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>5280.2</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>
2.consumeSoapUnHappyPathTrigger is rest with post action. blank body is passed as payload input. number conversion soap api is called with soap v=connector with the input as is the body to the request as input. Get the output and convert to json and send as response. This will throw error as no body passed. 500 status caode
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>5280.2</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>
3.soapExceptionHandlingThis case involves handling of error data if there is any error while executing the soap step. In this example,we are providing incorrect payload, which the soap service will be giving error of incorrect body. This error will be stored in "ERROR" object in the pipeline. Then we have step exception block where we have a step whcih will throw business exception, with message and code.
4.soapWithTimeoutsetting timeout. if connection take longer that set time, gives timeout error.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>5280.2</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>
5.soapWithoutTimeoutsetting timeout. will not give error since not timeout occurs
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>5280.2</ubiNum>
</NumberToWords>
</soap:Body>
</soap:Envelope>